package com.demo.youxuanmall.service;

import com.demo.youxuanmall.common.Result;
import com.demo.youxuanmall.entity.SystemSetting;

import java.util.List;
import java.util.Map;

public interface SystemSettingService {
    /**
     * 获取所有设置
     */
    Result<Map<String, Map<String, Object>>> getAllSettings();
    
    /**
     * 根据分组获取设置
     */
    Result<Map<String, Object>> getSettingsByGroup(String group);
    
    /**
     * 获取单个设置值
     */
    Result<String> getSettingValue(String key);
    
    /**
     * 更新设置
     */
    Result<Boolean> updateSettings(Map<String, String> settings);
    
    /**
     * 清除系统缓存
     */
    Result<Boolean> clearCache();
} 